package com.wms.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "添加盘点任务(按物品名称)")
public class AddStkByGoodsDTO {
    @ApiModelProperty(value = "任务ID（自增，前端无需传递）", hidden = true)
    private Integer id;  // 新增字段

    @ApiModelProperty(value = "任务编码")
    @JsonIgnore
    private String code;
    
    @ApiModelProperty(value = "任务名称")
    private String taskName;
    
    @ApiModelProperty(value = "盘点仓库id")
    private Integer stockId;
    
    @ApiModelProperty(value = "盘点人")
    private Integer userId;
    
    @ApiModelProperty(value = "盘点时间")
    private String takeDate;
    
    @ApiModelProperty(value = "备注")
    private String note;

    /** 任务类型 0-按货位 1-按物品 */
    @ApiModelProperty(value= "任务类型")
    private Integer taskType;

    @ApiModelProperty(value = "物品编码列表")
    private List<String> codeList;
}
